import { ApiProperty } from '@nestjs/swagger';
import { ResponseBodyDto } from './response-body.dto';

/**
 * 分页响应体基本字段
 */
export class ResponsePaginationDto extends ResponseBodyDto {
  @ApiProperty({
    description: '分页大小',
    example: 10
  })
  pageSize: number;

  @ApiProperty({
    description: '当前页',
    example: 1
  })
  current: number;

  @ApiProperty({
    description: '数据总条数',
    example: 10
  })
  total: number;
}
